//
//  LYQMineAccountInfoCell.m
//  ZCProject
//
//  Created by Zheng on 16/11/18.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQMineAccountInfoCell.h"

@implementation LYQMineAccountInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImage *aImage = [UIImage imageNamed:@"morejticon"];
        UIImageView *aImgv = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, aImage.size.width, aImage.size.height)];
        aImgv.image = aImage;
        self.accessoryView = aImgv;
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        self.textLabel.font = kWFont(15);
        self.textLabel.textColor = kHexadecimal(@"666666");
        
        [self.contentView addSubview:self.phoneLbl];
        
        [self layoutSubviewsInContentView];
    }
    return self;
}

#pragma mark - layout subviews
- (void)layoutSubviewsInContentView {
    
    [_phoneLbl mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).offset(-kWScale(7));
        make.centerY.equalTo(self);
    }];
}

#pragma mark - load subviews
- (UILabel *)phoneLbl {
    if (!_phoneLbl) {
        _phoneLbl = [[UILabel alloc] init];
        _phoneLbl.textColor = kLYQGray;
        _phoneLbl.font = kWFont(14);
    }
    return _phoneLbl;
}


@end
